package com.liandu.common.parent;

import com.alibaba.fastjson.annotation.JSONField;
import com.liandu.common.PageInfo;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.CreatedDate;

import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@MappedSuperclass
public class BaseEntity implements Serializable {
    private static final long serialVersionUID = 1418480965661388749L;


    @CreatedDate
    protected Date insertDateTime;//新增时间

    @Transient
    @JSONField(serialize = false)
    protected PageInfo page;
}
